package 集合0911.Collection;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class Map集合 {
    public static void main(String[]args){
        Map<String,Object>maps=new HashMap<>();
        maps.put("姓名","小wang");
        maps.put("地址","五华");
        maps.put("年龄",20);
        System.out.println(maps.get("地址"));
        Set<String>keys=maps.keySet();
        for (String k:keys){
            System.out.println(k+":"+maps.get(k));
        }
    }
}
